package com.tsmti.system.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 *
 * @author cyy
 * @date 2018/7/11
 */
@Entity
@Table(name = "PIMS_NUMBERRULES")
public class NumberRules implements Serializable {
    private int id;
    private String prefix;
    private int prefixtype;
    private String prefix1;
    private int prefixtype1;
    private String suffix;
    private Long digit;
    private Long serialnumber;
    private String type;
    private Long nowvalue;
    private String description;

    @Id
    @Column(name = "ID")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "PREFIX")
    public String getPrefix() {
        return prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    @Basic
    @Column(name = "PREFIXTYPE")
    public int getPrefixtype() {
        return prefixtype;
    }

    public void setPrefixtype(int prefixtype) {
        this.prefixtype = prefixtype;
    }

    @Basic
    @Column(name = "PREFIX1")
    public String getPrefix1() {
        return prefix1;
    }

    public void setPrefix1(String prefix1) {
        this.prefix1 = prefix1;
    }

    @Basic
    @Column(name = "PREFIXTYPE1")
    public int getPrefixtype1() {
        return prefixtype1;
    }

    public void setPrefixtype1(int prefixtype1) {
        this.prefixtype1 = prefixtype1;
    }

    @Basic
    @Column(name = "SUFFIX")
    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    @Basic
    @Column(name = "DIGIT")
    public Long getDigit() {
        return digit;
    }

    public void setDigit(Long digit) {
        this.digit = digit;
    }

    @Basic
    @Column(name = "SERIALNUMBER")
    public Long getSerialnumber() {
        return serialnumber;
    }

    public void setSerialnumber(Long serialnumber) {
        this.serialnumber = serialnumber;
    }

    @Basic
    @Column(name = "TYPE")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Basic
    @Column(name = "NOWVALUE")
    public Long getNowvalue() {
        return nowvalue;
    }

    public void setNowvalue(Long nowvalue) {
        this.nowvalue = nowvalue;
    }

    @Basic
    @Column(name = "DESCRIPTION")
    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
